package test1;

public class Main{
    public static void main(String[] args) {
    Role r1=new Role("小乔",1500,"女","扔出扇子");
    Role r2=new Role("兰陵王",1000,"男","挥动匕首");

    while(true){
        r1.attack(r2);
        if(r2.getBlood()==0){
            System.out.println(r1.getName()+"击败了"+r2.getName());
            break;
        }
        r2.attack(r1);
        if(r1.getBlood()==0){
            System.out.println(r2.getName()+"击败了"+r1.getName());
            break;
        }
    }
    }

}
